From b547745ce223ed0ce4c5b4ef01aebaf5e92f100e Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 20 Feb 2009 11:39:19 +0000 Subject: [PATCH] * nsterm.m (x_make_frame_invisible): Unset async_visible, async_iconified. Based on a patch by Christian Lynbech . (EmacsView-windowDidMiniaturize:): Unset async_visible. --- src/nsterm.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index b674edae580..b8639834e57 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1001,6 +1001,8 @@ x_make_frame_invisible (struct frame *f) NSTRACE (x_make_frame_invisible); check_ns (); [[view window] orderOut: NSApp]; + f->async_visible = 0; + f->async_iconified = 0; } @@ -5308,8 +5310,8 @@ extern void update_window_cursor (struct window *w, int on); NSTRACE (windowDidDeminiaturize); if (!emacsframe->output_data.ns) return; - emacsframe->async_visible = 1; emacsframe->async_iconified = 0; + emacsframe->async_visible = 1; windows_or_buffers_changed++; if (emacs_event) @@ -5340,6 +5342,7 @@ extern void update_window_cursor (struct window *w, int on); return; emacsframe->async_iconified = 1; + emacsframe->async_visible = 0; if (emacs_event) { -- 2.30.2